import 'package:dmz/business/home/controller/run_message_controller.dart';
import 'package:dmz/business/home/widgets/run_message_locus.dart';
import 'package:dmz/business/home/widgets/run_message_widgets.dart';
import 'package:dmz/business/home/widgets/run_messsage_count.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import '../../../base/pageWidget/base_stateful_widget.dart';

class MotoRunMessagePage extends BaseStatefulWidget<RunMessageController> {
  const MotoRunMessagePage({super.key});

  @override
  String titleString() => '运行信息'.tr;
  @override
  Widget buildContent(BuildContext context) {
    return Column(children: [
      RunMessageWidgets.topBarWidget(controller.pageIndex, controller.topClick),
      Expanded(
          child: PageView(
              controller: controller.pagect,
              physics: const NeverScrollableScrollPhysics(),
              children: const [
            RunMessageCountWidget(),
            RunMessageLocusWidget(),
          ]))
    ]);
  }
}
